package mybox.junit;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

import junit.framework.TestCase;



public class HexCodeTC extends TestCase{
	
public void test_HexCode()  {
		
		int startintIdx=67;
		
		for (int laufIdx=startintIdx; laufIdx<startintIdx+5; laufIdx++) {
			String hex = Integer.toHexString(laufIdx);
			System.out.println(laufIdx+"->"+hex.toUpperCase());
		}
	       
	}

public void test_readFile() throws IOException {
	
	File referenceFile = new File("/home/hannes/testSaved.dxf");
	BufferedReader br = new BufferedReader(new FileReader(referenceFile));
	String line;
	int lineIdx=0;
	while ((line = br.readLine()) != null) {
	   // process the line.
	   if (lineIdx++>28186)
		   System.out.println("outputFileWriter.println(\""+line+"\");");
	}
	br.close();
	
}

}


